package com.linkai.刷题.weilai;

import java.util.Scanner;

/**
 * @Description: 直接暴力
 * @Author: 林凯
 * @Date: 2021/11/28 19:52
 */
public class T02 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] stations = sc.nextLine().split(" ");
        int extraStations = Integer.valueOf(sc.nextLine());
        String[] result = new String[stations.length];
        // 暴力
        for (int i = 0; i < stations.length; i++) {
            int afterBuild = Integer.valueOf(stations[i]) + extraStations;
            for (int j = 0; j < stations.length; j++) {
                if (afterBuild < Integer.valueOf(stations[j])) {
                    result[i] = "False";
                    break;
                }
                result[i] = "True";
            }
        }
        System.out.print("[");
        for (int i = 0; i < result.length; i++) {
            System.out.print(result[i]);
            if (i != result.length - 1) {
                System.out.print(", ");
            }
        }
        System.out.print("]");

    }
}
